package com.kingdee.hackson.dao;

import com.kingdee.hackson.entity.AuthEntity;
import com.kingdee.hackson.entity.BizDataEntity;
import com.kingdee.hackson.entity.Position;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 测试自动生成代码的逻辑Mapper接口
 *
 * @author songwh
 * @date 2021-12-09
 */
public interface IBizDataDao {

    void batchInsert(@Param("datas") List<BizDataEntity> datas);

    List<Position> queryListPageByAuthIds(@Param("authIds") List<Long> authIds, @Param("startNum") int startNum, @Param("count") int count);

    Long queryListPageCountByAuthIds(@Param("authIds") List<Long> authIds);

    Long queryListPageCountByAuthCode(@Param("prefix") String authCode);

    List<Position> queryListPageByAuthCode(@Param("prefix") String authCode, @Param("startNum") int startNum, @Param("count") int count);

    void truncate();

    Long queryListPageCountByStructCode(@Param("prefix") String structCode);

    List<Position> queryListPageByStructCode(@Param("prefix") String structCode, @Param("startNum") int startNum, @Param("count") int count);

    Long queryListPageCountByMergeTable(@Param("prefix") String authCode);

    List<Position> queryListPageByMergeTable(@Param("prefix") String authCode, @Param("startNum") int startNum, @Param("count") int count);

    List<Position> queryListPageByMergeTableWithStructNumber(@Param("prefix") String structNumber, @Param("startNum") int startNum, @Param("count") int count);

    Long queryListPageByMergeTableCountWithStructNumber(String structNumber);
}
